package com.movie.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.time.LocalDateTime;

/**
 * 资讯数据传输对象
 */
@Data
public class NewsDTO {
    private Long id;
    private String title;
    private String content;
    private String coverImage;
    private String category;
    private Integer viewCount;
    private Integer likeCount;
    private Boolean isPublished;
    private Boolean isTop;
    
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime publishTime;
    
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
}